﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using MySql.Data.MySqlClient;
using Cinemon;
using Cinemon.MySqlConnect;

public partial class Statistics_view : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        using (DatabaseManager manager = new DatabaseManager())
        {
            DataTable table = manager.ExecuteQuery("TopMovie5");
            top5grid.DataSource = table;
            top5grid.DataBind();

            DataTable table2 = manager.ExecuteQuery("TopMovieAll");
            allTime.DataSource = table2;
            allTime.DataBind();
        }
    }
}